package com.tongsys.server.vo;

import com.tongsys.server.entity.Meta;
import io.swagger.annotations.ApiModelProperty;
import io.swagger.annotations.ApiOperation;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

@Data
@NoArgsConstructor
@AllArgsConstructor
@ApiOperation("用于返回菜单数据类,该类封装的属性需要和前端vue-element-admin的router数据格式一致。")
public class RouterVo {
    @ApiModelProperty("路由名称")
    private String name;

    @ApiModelProperty("路由路径")
    private String path;

    @ApiModelProperty("路由组件")
    private String component;

    @ApiModelProperty("是否始终显示")
    private boolean alwaysShow;

    @ApiModelProperty("路由元信息")
    private Meta meta;

    private List<RouterVo> children;
}
